package com.huluobo.a2205parkdemo.repair

import androidx.lifecycle.MutableLiveData
import com.huluobo.base.mvvm.BaseViewModel
import com.huluobo.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 *  Created by LC on 2024/9/23.
 */
@HiltViewModel
class RepairViewModel @Inject constructor(
    val apiService: ApiService
) : BaseViewModel() {
    val getAllRepairSuccess by lazy { MutableLiveData<String>() }
    fun getAllRepair() {
        executeNetRequest(
            { apiService.getAllRepair() },
            getAllRepairSuccess::postValue
        )
    }
}